package jastgen.frontend;

import jastgen.frontend.ByCaper.Token;

// 字句解析の結果 (トークンの種類と文字列の対)
public class Unit {

	public final Token t;
	public final String s;

	public static Unit unit(
			final Token t,
			final String s)
	{
		return new Unit(t, s);
	}

	public Unit(
			final Token t,
			final String s)
	{
		this.t = t;
		this.s = s;
	}

	@Override
	public String toString() {
		return "(token='" + t + "', symbol='" + s + "')";
	}
}
